package com.hoyue.service;

import com.hoyue.bean.Introduction;
import com.hoyue.dao.IntroductionDao;
import com.hoyue.dao.impl.IntroductionDaoImpl;

import java.sql.SQLException;
import java.util.List;

/**
 * @author Hoyue_network1
 * @version 1.0
 * Creat by 2018/8/23 18:19
 */
public class IntroductionService {
	IntroductionDao introductionDao = new IntroductionDaoImpl();

	public void updateIntro(Introduction introduction) {
		try {
			introductionDao.updateIntro(introduction);
		} catch (SQLException e) {
			e.printStackTrace();
		}
	}

	public List<Introduction> getAllIntro() {
		try {
			return introductionDao.getAllIntro();
		} catch (SQLException e) {
			e.printStackTrace();
		}
		return null;
	}
}
